package com.gddb.xwj.utils;

import com.gddb.xwj.constants.BaseApiConstants;

import java.util.Map;

/**
 * @Author xuwj
 * @Description: ${todo}
 * @CreateTime 2020/2/2 14:19
 * @Version 1.0
 */
public class ResultUtil {

    public static Object getResultDataMap(Map<String,Object> resultItem){
        Integer code = (Integer) resultItem.get(BaseApiConstants.HTTP_RES_CODE_NAME);
        if(BaseApiConstants.HTTP_RES_CODE_200.equals(code)){
            Object data = resultItem.get("data");
            return data;
        }
        return null;
    }
}
